package com.gujiangbo.chapter09;

import java.util.stream.IntStream;

/**
 * @Author: gujiangbo.co
 * @Contact: 646832012@qq.com
 * @Date: 2022/4/8 20:18
 * @Version: 1.0
 * @Description: String 垃圾回收
 * -Xms15m -Xmx15m -XX:+PrintStringTableStatistics -XX:+PrintGCDetails
 */
public class JavaStringGC {

    public static void main(String[] args) {
        IntStream.range(0,100000).forEach(i -> String.valueOf(i).intern());
    }
}
